問題描述
Windows 10 上 wagtail 的客戶端文件夾在哪裡 (Where is the client folder of wagtail on windows 10)
我使用 pip 在我的計算機上安裝 wagtail。它的操作系統是windows 10。在我的項目中,我需要自定義admin UI,主要是修改client文件夾中的css文件。文件夾客戶端與 github 上的文件夾 wagtai 是對等的。但是我在我的電腦上找不到客戶端文件夾。
如何找到客戶端文件夾?
希望得到您的幫助。
參考解法
方法 1:
The client
folder is not part of the installed Wagtail package ‑ instead, the package contains compiled and minified versions of the CSS and JavaScript assets as part of the Django apps that make up Wagtail, for example under wagtail/admin/static/wagtailadmin/css/
. This is because Wagtail's stylesheets are written in Sass and need to be compiled using a Node / NPM‑based toolchain to be usable in the browser, and end users of Wagtail aren't expected to have this toolchain installed.
As a result, making arbitrary customisations to Wagtail's CSS isn't formally supported ‑ to do it, you'll need to start from a checkout from Github, and set up a dev environment as per the documentation. As of Wagtail 2.12 it is possible to customise the colour scheme using CSS variables, though.